package com.sgcc.nfc.lock.data.local.database

import androidx.room.Database
import androidx.room.RoomDatabase
import com.sgcc.nfc.lock.data.local.dao.LockDao
import com.sgcc.nfc.lock.data.local.dao.OperationLogDao
import com.sgcc.nfc.lock.data.local.dao.RoomDao
import com.sgcc.nfc.lock.data.local.dao.WarningDao
import com.sgcc.nfc.lock.data.local.entity.LockEntity
import com.sgcc.nfc.lock.data.local.entity.OperationLogEntity
import com.sgcc.nfc.lock.data.local.entity.RoomEntity
import com.sgcc.nfc.lock.data.local.entity.WarningEntity

@Database(
    entities = [
        LockEntity::class,
        RoomEntity::class,
        WarningEntity::class,
        OperationLogEntity::class
    ],
    version = 3,
    exportSchema = false
)
abstract class AppDatabase : RoomDatabase() {
    abstract fun lockDao(): LockDao
    abstract fun roomDao(): RoomDao
    abstract fun warningDao(): WarningDao
    abstract fun operationLogDao(): OperationLogDao
}
